extends Node


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	GlobalSignals.signalEnterBattle.connect(enterBattleHandler)
	

func enterBattleHandler(configId, heroDatas):
	var sceneInst = GlobalUtils.changeScene(Consts.BATTLE_SCENE_NAME)
	sceneInst.init(configId, heroDatas)
	

func startNewGame():
	var yamu = CustomClasses.CharData.new()
	yamu.initByCharConfig(Consts.CHAR_YAMU)
	GlobalData.addHero(yamu)
